﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Panel.Master" Inherits="System.Web.Mvc.ViewPage<Prodma.DataAccess.Models.ViewModels.AgencyVm>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%=System.Configuration.ConfigurationManager.AppSettings["pageTitle"] %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<div class="listHeader">
    <img src="../../Images/ListImages/agencylist.png" alt="" class="listHeaderIco" />
    <div class="listHeaderText">Acente Yöneticisi : <%=ViewData.Model.Name %></div>
    
    <div class="listHeaderMenuBox">
        <% Html.RenderPartial("/views/shared/userControls/acceptance.ascx",
               new Prodma.DataAccess.Models.UserControlViewModels.AcceptanceVm() { View = "agency" }); %>
    </div>
</div>

<form method="post" action="/agency/edit/">
<div class="detailContainer">
    <div class="detailSection-50pc">
        <div class="detailSectionHeader">Giriş Bilgileri</div>
        <div class="detailSectionRow">
            <div class="detailSectionRowTitle-20pc">Adı :</div>
            <div class="detailSectionRowText-80pc"><input type="text" id="name" name="name" maxlength="100" class="detailSectionControl" value='<%=ViewData.Model.Name %>' /></div>
        </div>
        <div class="detailSectionRow">
            <div class="detailSectionRowTitle-20pc">Şehir :</div>
            <div class="detailSectionRowText-80pc"><%=Html.DropDownList("ddlCity", (SelectList)ViewData["cityList"], "Seçiniz", new { @class = "detailSectionControlCombo" })%></div>
        </div>
        <div class="detailSectionRow">
            <div class="detailSectionRowTitle-20pc">Telefon :</div>
            <div class="detailSectionRowText-80pc"><input type="text" id="phone" name="phone" maxlength="50" class="detailSectionControl" value='<%=ViewData.Model.Phone %>' /></div>
        </div>
        <div class="detailSectionRow">
            <div class="detailSectionRowTitle-20pc">Faks :</div>
            <div class="detailSectionRowText-80pc"><input type="text" id="fax" name="fax" maxlength="50" class="detailSectionControl" value='<%=ViewData.Model.Fax %>' /></div>
        </div>
        <div class="detailSectionRow">
            <div class="detailSectionRowTitle-20pc">Mail :</div>
            <div class="detailSectionRowText-80pc"><input type="text" id="mail" name="mail" maxlength="100" class="detailSectionControl" value='<%=ViewData.Model.Mail %>' /></div>
        </div>
        <div class="detailSectionRow">
            <div class="detailSectionRowTitle-20pc">Adres :</div>
            <div class="detailSectionRowText-80pc"><input type="text" id="address" name="address" maxlength="250" class="detailSectionControl" value='<%=ViewData.Model.Address %>' /></div>
        </div>
    </div>
    <div class="detailSection-50pc">
        <div class="detailSectionHeader">Sistem Bilgileri</div>
        <div class="detailSectionRow">
            <div class="detailSectionRowTitle-20pc">Durum :</div>
            <div class="detailSectionRowText-80pc"><%=Html.DropDownList("ddlState", (SelectList)ViewData["stateList"], "Seçiniz", new { @class = "detailSectionControlCombo" })%></div>
        </div>
    </div>
    <input type="hidden" id="id" name="id" value='<%=ViewData.Model.Id %>' />
</div>
</form>

<script type="text/javascript">
    function submitForm() {
        if (agencyValidate()) {
            document.forms[0].submit();
        }
    }
</script>

</asp:Content>
